package com.ruoyi.caiwu.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 总账对象 account_book_general
 *
 * @author ruoyi
 * @date 2025-03-06
 */
public class AccountBookGeneral extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 总账Id */
    private Long id;

    /** 科目编号 */
    @Excel(name = "科目编号")
    private String subjectCode;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String subjectName;

    /** 会计期间 */
    @Excel(name = "会计期间")
    private String period;

    /** 摘要 */
    @Excel(name = "摘要")
    private String summary;

    /** 借方余额 */
    @Excel(name = "借方余额")
    private BigDecimal debitAmount;

    /** 贷方余额 */
    @Excel(name = "贷方余额")
    private BigDecimal creditAmount;

    /** 方向 */
    @Excel(name = "方向")
    private String direction;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSubjectCode(String subjectCode)
    {
        this.subjectCode = subjectCode;
    }

    public String getSubjectCode()
    {
        return subjectCode;
    }
    public void setSubjectName(String subjectName)
    {
        this.subjectName = subjectName;
    }

    public String getSubjectName()
    {
        return subjectName;
    }
    public void setPeriod(String period)
    {
        this.period = period;
    }

    public String getPeriod()
    {
        return period;
    }
    public void setSummary(String summary)
    {
        this.summary = summary;
    }

    public String getSummary()
    {
        return summary;
    }
    public void setDebitAmount(BigDecimal debitAmount)
    {
        this.debitAmount = debitAmount;
    }

    public BigDecimal getDebitAmount()
    {
        return debitAmount;
    }
    public void setCreditAmount(BigDecimal creditAmount)
    {
        this.creditAmount = creditAmount;
    }

    public BigDecimal getCreditAmount()
    {
        return creditAmount;
    }
    public void setDirection(String direction)
    {
        this.direction = direction;
    }

    public String getDirection()
    {
        return direction;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("subjectCode", getSubjectCode())
            .append("subjectName", getSubjectName())
            .append("period", getPeriod())
            .append("summary", getSummary())
            .append("debitAmount", getDebitAmount())
            .append("creditAmount", getCreditAmount())
            .append("direction", getDirection())
            .append("balance", getBalance())
            .toString();
    }
}
